﻿Imports System.Collections.Generic

Namespace Dal
    Public Interface IGenericDao(Of T)

        Function Buscar(ByRef id As Long) As T

        Function BuscarTodos() As IList(Of T)

        Sub Apagar(ByRef entity As T)

        Sub Salvar(ByRef entity As T)

        Sub SalvarOuAlterar(ByRef entity As T)

        Sub Alterar(ByRef entity As T)

        Sub RemoverDaSessao(ByRef entity As T)

        Sub RemoverDaSessao(ByRef entities As List(Of T))

    End Interface
End Namespace

